
def getMove(avalaibleMoves,board,timer):
	i = 0
	for move in avalaibleMoves:
		print str(i)+" - "+move.toString()
		i+=1
	while True:
		try:
			intNum = int(raw_input('insert number of move: '))
			if intNum>=0:
				return intNum
		except ValueError:
			print "Wrong number, try again"
		except IndexError:
			print "Wrong number, try again"